package com.example.truthordare;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.TextView;

public class Victory extends Activity {
String name;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_victory);
		TextView vic=(TextView) findViewById(R.id.vic_tv1);
		Bundle receivebd = this.getIntent().getExtras();
		if (receivebd != null) {
			name = receivebd.getString("name");
			vic.setText(name+ " Victory");
			// type = receivebd.getInt("type");
		}
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.victory, menu);
		return true;
	}

}
